#ifndef MYCANVAS_H
#define MYCANVAS_H

#include <QWidget>
#include <QPainter>
#include <QVector2D>

class MyCanvas : public QWidget
{
    Q_OBJECT
public:
    explicit MyCanvas(QWidget *parent = 0);

    virtual void paintEvent(QPaintEvent* pEvent);
    virtual void mousePressEvent(QMouseEvent* event);
    void Limpiar();
    void pintarPuntos();
    bool existeAbscisa(int x);

    int contador;
    double* t;
    double* y;
    QList<QVector2D> nodos;

signals:

public slots:

};

bool compararNodos(QVector2D nodo1, QVector2D nodo2);

#endif // MYCANVAS_H
